Class LaserScanVisualizerSettings
ScriptableObject settings for the LaserScan visualizer. Controls point radius, color mode (distance, intensity, or angle), and optional intensity-driven point sizing.
Inheritance
Inherited Members
Namespace: Global Namespace
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
[CreateAssetMenu(fileName = "LaserScanVisualizerSettings", menuName = "Robotics/Sensor Visualizers/LaserScan", order = 1)]
public class LaserScanVisualizerSettings : VisualizerSettingsGeneric<LaserScanMsg>
Properties
ColorMode
Gets or sets the color mode that determines how individual scan point colors are computed.
Declaration
public LaserScanVisualizerSettings.ColorModeType ColorMode { get; set; }
Property Value
| Type | Description |
|---|---|
| LaserScanVisualizerSettings.ColorModeType |
MaxIntensity
Gets or sets the maximum intensity value used to normalize the intensity range for color and size mapping.
Declaration
public float MaxIntensity { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
PointRadius
Gets or sets the fixed billboard point radius in world units, used when UseIntensitySize is false.
Declaration
public float PointRadius { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
UseIntensitySize
Gets or sets whether the point radius is scaled by the intensity value instead of using a fixed PointRadius.
Declaration
public bool UseIntensitySize { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CreateGUI(LaserScanMsg, MessageMetadata)
Creates a GUI callback that renders an Inspector panel for the message data.
Declaration
public override Action CreateGUI(LaserScanMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| LaserScanMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Returns
| Type | Description |
|---|---|
| Action | An action that draws the GUI. |
Overrides
Draw(Drawing3d, LaserScanMsg, MessageMetadata, Transform)
Draws a 3D visualization of the message data.
Declaration
public override void Draw(Drawing3d drawing, LaserScanMsg message, MessageMetadata meta, Transform visualizerTransform)
Parameters
| Type | Name | Description |
|---|---|---|
| Drawing3d | drawing | The 3D drawing context to render into. |
| LaserScanMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
| Transform | visualizerTransform | The visualizerTransform. |